﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Disposables;
using System.Text;
using System.Threading.Tasks;

namespace Common.Entitys
{
    public interface IMessageBase : IDisposable
    {
        public CompositeDisposable Disposables { get; set; }

        public void Subscribe();

        //public  void Subscribe()
        //{
        //    Disposables = new CompositeDisposable();
        //}

         void IDisposable.Dispose()
        {
            Disposables?.Dispose();
        }
    }
}
